import request from '@/utils/http'

export const getOrderAPI = (orderId) => {
  return request({
    url: `/user/order/detail?orderId=${orderId}`
  })
}

//支付
export const getPayAPI = (data) => {
  return request.post('/user/pay', data)
}

//充值
export const getTopUpAPI = (data) => {
  return request.post('/user/topUp', data)
}

//获取账户余额
export const getBalanceAPI = () => {
  return request({
    url: '/account/balance'
  })
}